﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FtpWorkerRole.FtpServer;

namespace FtpWorkerRole.FtpCommand
{
    public class CommandBase
    {        
        public String commandName { get; set; }
        protected FtpSocketHandler handler;
        public CommandBase(FtpSocketHandler handler)
        {
            this.handler = handler;
        }
        public virtual void execute(String value)
        {

        }

        public string formatMessage(int codenum, string message)
        {
            return String.Format("{0} {1}\r\n", codenum, message);
        }
    }
}
